package com.yty.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yty.product.entity.ProductCategory;
import com.yty.product.mapper.ProductCategoryMapper;
import com.yty.product.service.ProductCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryServiceImpl extends ServiceImpl<ProductCategoryMapper, ProductCategory> implements ProductCategoryService {
    @Override
    public List<ProductCategory> listInType(List<Integer> types) {
        return super.list(new LambdaQueryWrapper<ProductCategory>().in(ProductCategory::getCategoryType, types));
    }
}
